package com.shou.zhnfyxt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shou.zhnfyxt.entity.HouseDetail;
import com.shou.zhnfyxt.mapper.HouseDetailMapper;
import com.shou.zhnfyxt.service.HouseDetailService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author JCY
 * @since 2022-12-07
 */
@Service
public class HouseDetailServiceImpl extends ServiceImpl<HouseDetailMapper, HouseDetail> implements HouseDetailService {

    public List<Integer> getAreaNumber(Integer areaNumber){
        ArrayList<Integer> arrayList = new ArrayList<>();
        if (areaNumber == 1){
            arrayList.add(0);
            arrayList.add(50);
            return arrayList;
        }
        if (areaNumber == 2){
            arrayList.add(50);
            arrayList.add(70);
            return arrayList;
        }
        if (areaNumber == 3){
            arrayList.add(70);
            arrayList.add(90);
            return arrayList;
        }
        if (areaNumber == 4){
            arrayList.add(90);
            arrayList.add(120);
            return arrayList;
        }if (areaNumber == 5){
            arrayList.add(120);
            arrayList.add(150);
            return arrayList;
        }if (areaNumber == 6){
            arrayList.add(150);
            arrayList.add(200);
            return arrayList;
        }if (areaNumber == 7){
            arrayList.add(200);
            arrayList.add(9999);
            return arrayList;
        }
        return null;
    }
}
